home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / GMS / GMSDev / Includes / files / objects.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-15  |  1.1 KB  |  52 lines

  1. #ifndef FILES_OBJECTS_H
  2. #define FILES_OBJECTS_H TRUE
  3.  
  4. /*
  5. **  $VER: objects.h V1.0
  6. **
  7. **  Object definitions.
  8. **
  9. **  (C) Copyright 1996-1998 DreamWorld Productions.
  10. **      All Rights Reserved.
  11. */
  12.  
  13. #ifndef DPKERNEL_H
  14. #include <dpkernel/dpkernel.h>
  15. #endif
  16.  
  17. /****************************************************************************
  18. ** Object entries.
  19. */
  20.  
  21. struct ObjectEntry { /* Entry stucture for GetObjectList() */
  22.   char  *Name;       /* Pointer to the name, may be NULL */
  23.   APTR  Object;      /* Object is returned here */
  24. };
  25.  
  26. struct DataHeader {  /* Private structure for object headers */
  27.   LONG Type;         /* Type of object, eg STRC, CODE, DATA */
  28.   LONG Next;         /* Offset towards next object */
  29. };
  30.  
  31. /*****************************************************************************
  32. ** Object-File.
  33. */
  34.  
  35. #define VER_OBJECTFILE  1
  36. #define TAGS_OBJECTFILE ((ID_SPCTAGS<<16)|ID_OBJECTFILE)
  37.  
  38. struct ObjectFile {
  39.   struct Head   Head;
  40.   struct Source *Source;
  41.  
  42.   /* Private fields start now */
  43.  
  44.   struct Segment *prvSegments;
  45.   APTR   prvData;
  46. };
  47.  
  48. #define OBJA_Source (12|TAPTR)
  49.  
  50. #endif /* FILES_OBJECTS_H */
  51.  
  52.